package com.sj.stone.domain.oracle;

import com.sj.stone.domain.oracle.entry.SalesMan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

public interface SalesManRepository  extends JpaRepository<SalesMan, String> , JpaSpecificationExecutor<SalesMan> {

    SalesMan findAllByTruename(String username);

    SalesMan findByMobile(String mobile);
}
